package com.shopx.auth.dao.db1;


import com.shopx.auth.bean.SysRoleUrl;
import com.shopx.auth.model.SysRoleUrlModel;
import com.shopx.dal.mysql.SqlMapper;

import java.util.List;
import java.util.Map;


@SqlMapper
public interface SysRoleUrlDao {
  int insertSelective(SysRoleUrl sysRoleUrl);

  int updateByPrimaryKeySelective(SysRoleUrl sysRoleUrl);

  int deleteByPrimaryKey(SysRoleUrl sysRoleUrl);

  int deleteByRoleCode(SysRoleUrl sysRoleUrl);

  void deleteBatch(Map m);

  SysRoleUrlModel selectByPrimaryKey(SysRoleUrl sysRoleUrl);

  int selectCount(SysRoleUrlModel sysRoleUrl);

  List<SysRoleUrlModel> selectList(SysRoleUrlModel sysRoleUrl);
  /**
   * @descript 新增企业，新增企业角色和菜单关系
   *
   * @param sysRoleUrl
   * @author lituo
   * @date 2022/1/4 15:27
   * @return int
   */
  int insertDefaultRela(SysRoleUrlModel sysRoleUrl);
}

